<?php

class BoletasController extends AppController{
   
    public $helpers = array('Html', 'Form');
    public $name = 'Boletas';

    public function index() {
        $this->set('boletas', $this->Boleta->find('all'));
    }

    public function add() {
        if ($this->request->is('post')) {
            if ($this->Boleta->save($this->request->data)) {
                $this->redirect(array('action' => 'index'));
            }
        }
    }
}

?>
